package com.bobo.dao.report;

import com.bobo.dao.IBaseDao;
import com.bobo.dto.ReportDto;
import com.bobo.model.Message;
import com.bobo.model.Report;
import com.bobo.model.Topic;
import com.bobo.model.User;

import java.util.List;

/**
 * Created by bobo on 16-11-3.
 */
public interface IReportDao extends IBaseDao<Report> {

    public Integer create(Report report);

    public Report getById(Integer id);

    public List<Report> getReports(Integer messageId,  Integer current, Integer pageSize);

    public List<ReportDto> getReportDtos( Integer current, Integer pageSize);

    public Integer getCount(Integer messageId);

    public List<Message> getReportByUser(User user, Topic topic);
}
